package org.videopractice.media;

// 媒体数据包
public class MediaDataPackage {
    // H264 数据
    public final byte[] mediaData;
    // 时间戳
    public final long timestamp;

    public MediaDataPackage(byte[] mediaData, final long timestamp) {
        this.mediaData = mediaData;
        this.timestamp = timestamp;
    }

    public boolean isEmpty() {
        return mediaData == null || mediaData.length == 0;
    }

}
